package com.book.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 积分记录表
 * </p>
 *
 * @author auto
 * @since 2025-04-02 06:38:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("points_records")
@Schema(name = "PointsRecords对象", description = "积分记录表")
public class PointsRecords {

    @Schema(name = "主键")
    @TableId(value = "points_record_id", type = IdType.ASSIGN_UUID)
    private String pointsRecordId;

    @Schema(name = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(name = "积分数量")
    @TableField("points_amount")
    private Long pointsAmount;

    @Schema(name = "0获取或1消费")
    @TableField("records_type")
    private Integer recordsType;

    @Schema(name = "描述")
    @TableField("description")
    private String description;

    @Schema(name = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(name = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
